package com.xauto.pioneer.appuser.model;

import org.json.JSONObject;

/**车辆运行模型
 * Created by Ellis.Li on 2017/5/12.
 */
public class BillChargeInfo extends BaseModel<BillChargeInfo> {

    /** 运行公里数*/
    public String kilometre="";
    /** 运行公里数金额*/
    public String total_kilometre="";
    /** 运行时间*/
    public String run_time="";
    /** 运行时间金额*/
    public String total_run_time="";
    /** 耗能*/
    public String energy="";
    /** 耗能金额*/
    public String total_energy="";
    /** 还车费用*/
    public String enter_expense="";
    /** 取车费用*/
    public String departure_expense="";
    @Override
    public BillChargeInfo parse(JSONObject jsonObject) {
        if(jsonObject != null) {
            kilometre = jsonObject.optString("kilometre");
            total_kilometre = jsonObject.optString("total_kilometre");
            run_time = jsonObject.optString("run_time");
            total_run_time = jsonObject.optString("total_run_time");
            energy = jsonObject.optString("energy");
            total_energy = jsonObject.optString("total_energy");
            enter_expense = jsonObject.optString("enter_expense");
            departure_expense = jsonObject.optString("departure_expense");
            return this;
        }
        return null;
    }
}
